package com.example.score.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.time.LocalDateTime;
import com.fasterxml.jackson.annotation.JsonFormat;

@Data
@TableName("t_score_statistics")
public class ScoreStatistics {
    private Long id;
    private Long examDetailId;
    private Long classId;  // 0表示整个考试的汇总
    private String className;
    private Integer totalStudents;  // 总人数
    private Integer submitStudents;  // 实际提交人数
    private Double fullScore;  // 满分
    private Double maxScore;  // 最高分
    private Double avgScore;  // 平均分
    private Double medianScore;  // 中位数
    private Double stdDev;  // 标准差
    private Integer excellentCount;  // 优秀人数
    private Double excellentRate;  // 优秀率
    private Integer passCount;  // 及格人数
    private Double passRate;  // 及格率
    private Double objectiveAvgScore;  // 客观题平均分
    private Double subjectiveAvgScore;  // 主观题平均分
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updatedTime;
} 